package com.kongwg.exer1;

public class CylinderTest {

	public static void main(String[] args) {
		
		
		Cylinder cl = new Cylinder();
		Circle circle = new Circle();
		
		cl.setRadius(3);
		cl.setLength(6);
		double area = cl.findArea();
		double volume =cl.findVolume();
		double a = circle.findArea();
		
		
		System.out.println("表面积为"+area+",体积为"+volume);
		System.out.println(a);
	}
}
